package com.homework.demo1;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/21 17:10
 * @description 部门(编号，部门名，部门介绍，分机号)
 */
public class Dept {
    private String did;
    private String dname;
    private String djieshao;
    private String fenjihao;

    public Dept(String did, String dname, String djieshao, String fenjihao) {
        this.did = did;
        this.dname = dname;
        this.djieshao = djieshao;
        this.fenjihao = fenjihao;
    }

    public Dept() {
    }

    public String getDid() {
        return did;
    }

    public void setDid(String did) {
        this.did = did;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getDjieshao() {
        return djieshao;
    }

    public void setDjieshao(String djieshao) {
        this.djieshao = djieshao;
    }

    public String getFenjihao() {
        return fenjihao;
    }

    public void setFenjihao(String fenjihao) {
        this.fenjihao = fenjihao;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "did='" + did + '\'' +
                ", dname='" + dname + '\'' +
                ", djieshao='" + djieshao + '\'' +
                ", fenjihao='" + fenjihao + '\'' +
                '}';
    }
}
